package com.baidu.zhang;

import com.baidu.zhang.util.IntentAvailable;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class wifiActivity extends Activity {
	
	private WifiAdmin mWifiAdmin;
	private TextView mTextView;
	//private View view;
	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.wifi);
		
		mWifiAdmin=new WifiAdmin(getApplicationContext());
		mTextView=(TextView)findViewById(R.id.textView2);
		
		if(!IntentAvailable.isStringEmpty(mWifiAdmin.LookScanResult()))
			mTextView.setText(mWifiAdmin.LookScanResult());
		else
			mTextView.setText("There is no wifi!");
		
	}

}
